﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ErgoBreak.Core
{
    internal class Break
    {
        #region Fields
        private int duration;
        private BreakStatus status;
        #endregion

        #region Constructors
        /// <summary>
        /// Creates an instance of 'Break' class.
        /// </summary>
        /// <param name="breakDuration">Duration of the current 'Break' instance.</param>
        /// <param name="status">Initial status of the current object. The default value is 'Proposed'.</param>
        public Break(int breakDuration, BreakStatus status = BreakStatus.Proposed)
        {
            this.duration = breakDuration;
            this.status = status;
        }
        #endregion

        #region Properties
        /// <summary>
        /// Gets a value indicating the proposed duration for the current object.
        /// </summary>
        public int ProposedDuration
        {
            get { return this.duration; }
        }

        /// <summary>
        /// Gets or sets the status of current 'Break' object.
        /// </summary>
        public BreakStatus Status
        {
            get 
            { 
                return this.status; 
            }
            set
            {
                this.status = value;
            }
        }
        #endregion
    }
}
